package domain

import (
	"github.com/lab-online/internal/course/entity"
)

func (d *Domain) SearchCourse(courseEntity entity.CourseEntity) ([]entity.CourseEntity, error) {
	courses, err := d.repository.GetCourses(courseEntity)
	if err != nil {
		return nil, err
	}
	return courses, nil
}
